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