optimize the function to get the complementary nucleotide

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>