[RFC] Refactor codebase

cc @mlubin @IainNZ 
total number of branch & bound nodes