fix some errors in sort.cpp & sort_alg.cpp