Selection sort algorithm implementation in Cpp.