SquareAllElementsAndKeepSortedUsingArraysSort