recursion, iteration, recursion&dictionary comparison