Allocentric and egocentric updating of spatial memories