funkonacci with recursion and without recursion implemented