Updated matrix class with some transform helpers.