add selection sort algorithm