working ProcessorHeapSort implementation