bug fix

list index out of range when all neighbours of an entry overlap lexically
and attempting to remove self and the nearest neighbour