Count Inversions algorithm added.