The thalamus and memory formation