Global Topological Map Building Using Local Grid Maps