Non-von Neumann computing using networks of optical parametric oscillators