BUG: type->dtype in a cross-platform way
compute offset in a cross-platform way
BUG: don't subtract offset in binary_tree
add explicit types to neighbors cython code