selection sort from chapter 2
chapter 2 examples