A Scenario Tree-Based Decomposition for Solving Multistage Stochastic Programs: With Application in Energy Production (Stochastic Programming)