QuickSort height of bars added and in-order ranking