Advanced algorithms

shape