refactor out swapper from bubble sort and start selection sort