Merges two given lists in - place . This function mainly compares head nodes and calls mergeUtil ( )
static Node merge ( Node h1 , Node h2 ) { if ( h1 == null ) return h2 ; if ( h2 == null ) return h1 ;