K-nearest neighbors model for benchmarking the performance