debugging distances with flann