fixed the bug in dtmc.rb, indices are base-one in matlab