Changed function structure in "gm/rm.cc"
Changed the structure of three functions in "gm/rm.cc" that threw a warning.
Deleted the variable TBFR which is now unused in each of the functions.
Moved the declaration of variables to their initialization and added a new "switch case" to avoid an if condition in
each function.