Added DR code, and created a merge sort implementation.