Update linsolve.m