implement parallel vector sum