another version of bubble sort
short bubble sort