Picking the right terminators and data representations will likely not be a trivial task; best understand something like zip or tar and try and reimplement something similar so that you don't experience full pain of reinventing not just a wheel but the whole ecosystem
the terminators themselves are gonna be hard though