C++14 automatic differentiation