Refactored Code in LinearAlgebra