introduced factors that can be sampled (to implement SGD like algorithms on the factor graph)