Julia implementation of dual numbers for automatic differentiation