Please add an algorithm for maps