parallel accumulate - inital version