Finished first version of k-fold-cross-validation