Implement missing matrix operations