Text this: Employing Optical Nonlinearity in Photonic Crystals: A Step Towards All-Optical Logic Gates