Make aggregations combinable and remove AVG aggregation
Fix hash partitioning for new java api
Fixed RecordOutputEmitter and extended OutputEmitterTest for hash corner cases
Aligned the Scala KMeans with the Java KMeans example.