parallel algorithm diagram