Add fn to get all arrangements of indexes

... given a pair of layouts