Changed matrix major from row-major to column-major
Removed unnecessary matrix resize