Adding a multi-merge function to merge_rlcsa