Long-term mapping and localization using feature stability histograms