Added average to recursion.erl