Heap sort added to Array