Added in IntroProgramming examples of recursion and iterative and refactored them