Economic and Environmental Optimization of Ornamental Stone Block Cutting with a 3D Algorithm