Bubblesort

correctness, length & element preservation