matrix exponential function

concurrent and serial implementation
As Dan said, this is not thread-safe. If two goroutines call ExpM at the same time there is a race condition. I also highly doubt that this version is faster. The non-memoized version is "j *= i" which is about the cheapest operation you can perform. The memoized version is two slice lookups and an if statement.