A neural network for detection of orientation, velocity, and direction of movement, based on physiological rules