On the implementation of augmented Lagrangian algorithms