Add bubble sort implementation.