Common Loop Algorithms
one more common loop algorithm