Added map smoothing function to remove riggedy edges from the map.