Add more matrix operations to lin