Create basic recursive factorial function