Optimize a Waveguide Mode Converter