ruby: grade-school: tidy up SortedArray