Algorithm to manage a system of elevator.