Optimization Of Nanoscale Waveguide Taper And Bend Geometries