add a c interface for expm