Approximate sequence alignment