fix binomial-tree algorithm

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