Markovization orders 2 and 3 plus fixes for parser/buildTree.