Phrase tokenizer

Two changes: adds a tokenizer that quickly chunks tokens into a predefined list of phrases and code which can build a list of phrases from bigram statistics.