add the select sort algorithm in c++