counting inversions algorithm using merge sort was added