Higher-order habit strength and spatial learning