Markov Grammatical inferencer