Added mergeSort methods. Fixed bugs.