Added packet switching for all routing algorithms.