Evolving Networks by Merging Nodes