create_natcauslist_cpp function

Create a natural causal list from a DBN. This is the C++ backend of the function.