matrix exponential function

concurrent and serial implementation
This returns an int?