Common: added internal items index to SortedHeap
Common: Fix SortedHeap index: should use T value, not T key