Generalized Reduced Gradient Algorithm