Distances predicates version 2 implemented. Now the user may use different predicates for knn point, min and max distances.