Fix failure of KNN with cross-validation and memory leak on Features copy constructor.
Merge pull request #2496 from iglesias/fix/knn_with_cv

Fix failure of KNN with cross-validation and memory leak on Features copy constructor.