working bubble sort