Understanding the Molecular Mechanism of Gradient Sensing