matrix exponential function

concurrent and serial implementation
Sorry, I should have been less cryptic earlier. This has a race condition, because each concurrent call of exp writes over mpwr1d, writes over tmp, and writes over mpwr1