Implemented real bubble sort