A rapid algorithm for solution of the equations of multiple equilibrium systems-RAMESES.