Allow Matrix.diag() to construct diagonal matrices with the elements on a minor diagonal
Removed Matrix.arrayToMatrix, but added same functionality to Matrix constructor + fixed tests