The Revisiting Problem in Mobile Robot Map Building: A Hierarchical Bayesian Approach