Map based algorithms

shape