Added a fast spatially partitione spatial statistics function