90% implemented sorting text by word frequency script