Recursive Quadratic Programming Algorithm that Uses an Exact Augmented Lagrangian Function