Added interpolation code based on scipy's odepack implementation.