Added recursive version

Added recursive version of merge function and comments