modified the transformation matrix to be templated over type T
modified the converge method to be templated over type T
modified code to use templated max value for parameter initialization