simple test using matrix classes and template functions
Sample matrix routine with template function for matrix operations