Array accumulate