start using nanoflann for the soci loader to reorganize within-patch points as a kdtree