Added some numerical preconditioning for the alternating projections solver.