4 Optical Logic Devices Based on Photonic Crystal