Working through the sorting section - here's a selection sort