fix count inversions for large datasets
fix count inversions for large datasets

topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn,topliceanu/learn