binarysearch and mergesort in Python updated