Program to sort an array using bubble sort