Version 2.1
Used for instead of while

modified:   AlgorithmsII/programmingAssignments/PA02/maxSpacingKcluster.py