Proper polymorphism for markov
Bugfix: markov was ignoring weights