Algorithms: new structure for routing algorithms