Optimizations to SortedList, depricated containsKey.