Added const qualifier as nanoflann complains while using SGDatasetAdaptor