A code designed for bubble sort