Appearance-based mapping and localization using feature stability histograms for mobile robot navigation