Structural Optimization of Cantilever Mechanical Elements