Advances in automatic differentiation.