new algorithm for word cloud