Computing Matrix Functions In Arbitrary Precision Arithmetic