significant improvements to GADDAG memory consumption
add testcase