Add remove_infrequent_words