Global or local alignment of 2 strings