solved local alignment problem