Finish sort3.cpp