the innner sort algirithm compliment by c++