Close reader for bubble sort