adding the code that changes parents in round robin fashion on ditance based simulation. The objective function has not been modified