Improved KNN with 3-window