fixed bug where findneighbors was checking for an index to be less than zero instead of just being equal to zero