Preparation for new stage
added function to remove duplicated alignments before writing