This is a sort algprithm source code in C++