Created hpp and cpp files to declare and define the decision functions,
instead of doing it in the main file.
Changed the decicion function pointer to function static in order to
make a common array of those for each instance.