metric spaces for sequence alignment