created SortedList class