A Dynamic Model of Segregation in Small-World Networks