Replced vector->map. Вramaticaly increased speed :)