Added sequence alignment code.
Refactored code for sequence alignment.