Visualizes swim (bubble-up) and sink (sift-down) operations with synchronized tree and array representations.