Algorithms/Sorting-bubble sort/c method 1