Builds a sorted section one element at a time