Added matrix_form() and MatrixForm to display 2-dimensional tensors as matrices
Change the way interactions are created in ConstantHamiltonian, needed for problems which are not homogeneous in dimensionality.