Adding selection sort