Macro Programming a Spatial Computer with Bayesian Networks