merge sort

merge sort, for the first time writing this algorithm. not an efficient
way. using space complexity O(n).