debugged problem with use of SortedArrayList class in TaskList