Array new_inject nearly working with recursion