[FIX]fix a bug in bubble sort