Optimization of Transistor Design for Carbon Nanotubes