ooh, optimization idea.

The currently implemented solution took about 3 minutes to run on rosalind's dataset of about 100 sequences.