Finished the recursive function

This time I haven't added any error checking
or fault handling

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Changes to be committed:
#	modified:   main.cpp
#
