Working implementation of Markov tree.

Use --save to input from stdin.
Use --load to load database (currently data.txt)