Regression Monte Carlo and Applications in Energy