exploring add-complements
print median for benchmarks
add gen2 function
cleanup