Matrix class uses templates, ditch printf and formatting.