Numerical methods for hyperbolic and parabolic integro-differential equations