A Tensegrity Based Structure Optimization Framework