Add MERGE for patterns with more than single nodes