Distributed Demand-Side Management in Smart Grid: How Imitation improves power scheduling