Optimization of the efficiency of: Map updating algorithm