An algorithm for automatic collation of vocabulary decks based on word frequency