A Second Order Approximation for the Caputo Fractional Derivative