Congestion and truck service time minimization in a container terminal