Implementing bubble sort to sort data in ascending order.