matrix exponential function

concurrent and serial implementation
Drop this helper, it is not necessary.