remove negative indices from neighbors cython code
  - use X.ndim - k instead of -k for indexing
Merge pull request #2230 from pprett/neighbors-segfault-fix

Neighbors segfault fix