Added heap sort implementation by PriorityQueue.