Added more matrix helper methods