Combined local_grad3 and local_grad3_t into single cuda routine.

This step removes H<->D copies of temporary variables ur, us, ut.
Performance is now over 6x faster than single core CPU.

Note: the calls to add2 are redundant in the context of BLAS; they
can be replaced by beta=1.0.