Update SolveBalanceEqns.m