Added an optional argument to the init of Matrix(), so that the Matrix can be transposed.