Add k-fold cross validation. Full implementation in kknn.R