add grammar.rb, hg.rb: viterbi_path(), all_paths()
argh