an R interface to the flann library