algorithm for global alignment 6578568