Added heapify/heapsort methods and solution of CountingInversions for O(n*logn)