def merge(A, B): """ merging two lists into a sorted list A and B must be sorted! """ n = len(A) m = len(B) C = [0 for i in range(n+m)] a=0; b=0; c=0 while a