Implemented kmeans
Forgot to initialize the max weights.
Merge pull request #1 from darrensapalo/dev-ivan

Dev ivan