More Linear Algebra Optimizations