Fixed python implementation of Merge Sort

Implemented merge function instead of importing it from heapq