Alternate Gradient Option

We should test the efficiency of these two gradient calculations.