A Model for Minimizing the Cost of Rock Mass Excavation