tests to use on refactored code to prove same funtionality
bubble sort put into a function