Sum the list elements with recursion