Increased readis(read time out) and improved kmeans implementation