Overcoming the Challenges of Implementing K-Means Clustering Algorithm