Algorithm design

shape