Stochastic Modelling And Optimal Control Of Compartment Fires