Calculating the Unate Recursive Complement of a cube list (i.e. sum-of-product Boolean function) using C++.