Revised join.c to use hash for complementing bases