A Model of the Neural Basis of the Rat's Sense of Direction