Problem
1. Implement the bubble sort using simultaneous assignment.
2. A bubble sort can be modified to "bubble" in both directions. The first pass moves "up" the list, and the second pass moves "down." This alternating pattern continues until no more passes are necessary. Implement this variation and describe under what circumstances it might be appropriate.