A computational model for eukaryotic directional sensing