counting_inversion problem added