iterative parallel prefix up and down