Create mergeintervals.cpp

show use of vector sort function.