Start hacking on a C(++) implementation of the optimizer