A simple DAG data structure that can be constructed from an MC++ DAG, and which can be evaluated on both the CPU and the GPU.