Modified next stop algorithm taking multiple vehicles into account