The bug occurs when function is not Morse.
Added python prototype of merge.