Add Ruby algorithm for counting inversions.