first iteration- created k-nn predictor