[FEATURE] dynamic gap costs

Adds dynamic gap costs to the alignment algorithms.