first draft of simple bubble sort algorithm