Corrected write counter of merge sort.
Simplified (un)check all code.
Cleaned up median defines.
Double click works.
Messing with Run state is not necessary.