Added a sorted array class.