refactor worker and superstep bsp with option for task operator.