Simulation of a Thalamocortical Circuit for Computing Directional Heading in the Rat