Add a KMeansTest
Fix some leaked keys.
Add scoring support to KMeans
Remove some ideaj warnings