Fix memory leak due to SGVector::clone in KNN
Merge pull request #1798 from iglesias/develop

Fix memory leak due to SGVector::clone in KNN