Update sorting.cpp

modified returns of merge sort