Add matrix algebra utilities