Modeling Interactions of the Rat's Place and Head Direction Systems