A Scalar Limiting Algorithm for High-Order Methods