this is a simple bubble sort