Write a recursive method to find the sum of all elements of an array: