Practice of implementing bubble sort