edited sort.cpp and sort.h for timing and comparison purposes