Implemented PastTrack alternative using TreeSet