from Gabriel: 

 - removed code duplication and casts from InvertFast method (Coverity)
 - better use of templates and STL


git-svn-id: https://root.cern.ch/svn/root/trunk@48335 27541ba8-7e3a-0410-8455-c3a389f83636