Added tests of Knn algorithm and changed Knn internal algorihtm of calculating prediction of an attribut