C++ sorting functions (bubble, insertion, selection, quick and binary tree)