matrix class: createDiag added, use of MatrixOutOfBoundException