Add flatten task based on median sort