Solve Local Alignment Problem