add select sort algorithm