Sped up traceback matrix construction and reduced code duplication

1) Combined commandline parsing for needleman_wunsch and smith_waterman to
   reduce code duplication
2) Improved speed of filling in the traceback matrix by incrementing indices
   after each iteration instead of re-calculating by multplication
3) Perl modules working again; added timeout option