Optimization for setting Matrix[].
Merge pull request #2130 from SickheadGames/matrix

Matrix Array Optimization