Added more matrix functions.