merge sort in cpp
max concurrent events