bubble sort demo for loop,while loop