adding increment operation to pivot index in merge process