Added second derivatives of residual A using R-K

Added the necessary second derivatives of residual A using R-K to
calculate the Hessian, and thus the equilibrium calculations.