KMeans clustering algorithm module in node.js