a basic matrix template for c++. i hope.