Interactive sorting algorithms for demonstration purposes