Demonstration of algorithm animation with heapsort