Simulation of an all-optical photonic crystal switch using nonlinear optics and slow light for hetero structures y-junctions