Add bubble sort function