Added matrix operations.