An optimal solution to the resource constrained project scheduling problem with stochastic task durations