Geomechanical and Financial Optimization of Tailings