draft vectorized reduce
fixed some bugs in vectorized reduce, tested  in collocation and added fast parallel sum