Try to work out intricacies of index calculation

...and pretty much fail. As far as I can tell multi.hmm should work, but
it kicks out of range of the log_prob table, which is filled with values
which are not what I would expect.