use mem copy in alignement file and in reads