Local Excitation, Global Inhibition Mechanism for Gradient Sensing