variable side almost finished. Wasn't tested yet
small refactoring of variable side
saving the causalization information
causalizeNto1 function added
modifications to remove_edge_from_array
small fix to remove_edge_from_array
iterators were getting invalidated after erasures, fixed