modified where the threshold is checked to decide whether to sequential or parallel merge