To sost the elements in ascending order using bubble sort