Changed ex2_reg.py to use more efficient minimization approach.