Fixing the bubble sort, which doesn't seem to work