Solved bubble sort