Cad For Nanolithography And Nanophotonics