bubble sort to 3AC working