Rewrote calcuation of l2
Changed how trajectory was generated for gradient_test of mixed_nlg