ordering operator for GiST cube indices, based on KNN distance