A simple matrix caculation template header. Needs c++11.