add function for alignment copying
added methods for copying and swapping alignments