added estimator to determine n parameter for KNN