fixed typo with quaternions
Added typename default value as float
Changed order of template arguments in matrix