Add some algorithms to deteck shape with de same type