Fix for creating square matrices and added identity property to the Matrix function

The Matrix constructor used the (undefined) cols variable when creating the appropriate array instead of this.cols.

There was a isIdentity parameter in the Matrix constructor but it wasn't used. I added the Matrix.identity(size).