Added linear solver memory to Solve