modified sort api to include reverse call.. gave quick sort 3way partion
logic and started PQ based on binary Heap