bubble sort initial version