bubble sort in ruby