[algos] add merge sort implementation
[algos] add inversions implementation