[count_inversions] Add algorithm to count inversions
[count_inversions] Add algorithm to count inversions

Given a sequence of sortable items, it counts the number of inversions from
the (ascending) sorted order.

Piggybacks on included custom mergesort.

nitsas/py3algs