Animation for bubble sort