Evolving Networks with memory