Encoding of spatial relations with amnesia