use a TreeSet as SortedSet implementation in findNeighborsOf

It should provide more efficient .last calculation