Adds a parameter for the currently hard coded `kSubmapsToKeep` in `pure_localization` mode. The new parameter `max_submaps_with_pure_localization` allows to specify the history size of submaps in `pure_localization` mode. Closes #1116