Ensured flann was returning squared distance