Port ada_curve.h to mem_ada.h. Add script for mem footprint.
Calculate max memory footprint.