Upgrade: array list

    Heap sort upgrade. Remove some strange code.