adds gradients to barycentric code
first pass at linear approx HJB idea