Indexing experiments

Hacking around with the joint indexes to see how to perform
marginalisation operation.