remove negative indices from neighbors cython code
  - use X.ndim - k instead of -k for indexing