Bubble sort now seems to work

never again....