commit factorial.cpp