Five sorting algorithms in C++, to be run in unix terminal