Initial checkin of KMeans implementation

Basic framework for KMeans implementation and code refactoring.
Dunno ... .ml.mlib.common.Functions or something? just a utility class to hold this for now