Add merge sort implementation.
Add simple profiling.