Phase change memory : device physics, scaling and neuromorphic application