add hash function

Link: https://github.com/GeneAssembly/biosal/issues/38
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>