pairwise alignment, with constraints on strcutural elements (gap penalties inside them are higher)