Local alignment problem