Implementation of Bubble Sort algorithm