Stochastic optimal control - a forward and backward sampling approach