recursive sum arrays