Changed the derivative calculation in pchip to resolve issue #84.