Minor code improvements
Implemented MergeSort