Inital implementation of memory efficient grounding for wcsp inference and bpll learning