Update mergesort.py

changed optimized second implementation