one way to do bubble sort
another way to do bubble sort