An algorithm for the equilibrium assignment problem with random link times