add Counting Inversions algorithm