Merge sort implementation written with Yaw