make IndexedPointBuffer based on nanoflann instead of FLANN to remove external dependency #176
fix up dimensionality so both 2d and 3d indexes work properly
filters.index is no more. Use the IndexedPointBuffer instead