add explicit types to neighbors cython code