Exploring Memory Hierarchy Design with Emerging Memory Technologies