Minor performance improvement for Lagrangian gradient and normal equation constructions.  Examples updated.