working on multi D 2

working randomization and conditional matrix compression. also (maybe?)
working distance_fn which computes the nxtxcombination matrix for all
the cells?