Dimple: Java and Matlab libraries for probabilistic inference