Add K-Means function
K-Means bug fixes
Merge pull request #9 from ocean6204/master

Add K-Means function