Fixed findRouter methods

modified findRouter to use a global vector to store the router
information.