Creating Logic using Waves: Photonic Gates