How do I implement best matrix operations? Is using some sort of dictionary the best way? Or should it rather be done with lists and some 2D-to-linear index transformation [ (i,j)->(n*i+j) ] ? Thanks Felix Pütsch