Cleaning code of factorial.cpp