updated objFunction2D

The objective function takes in two regularization parameters, one for z
and one for x