Use order 2 Markov chains for phrase generation

Fixes #33.
Fixes #16.