linear equations solver with steps