distributed bubble sort (but it's not fast!)