Initial commit for recursive version of program.