Add bubble sort implementation