Micromachined curling optical switch array for planar lightwave circuit based integrated programmable add drop multiplexer