Rectangle algorithm v1: it recognize a rectangle as long as a shape is
closed, this algorithm checks the shape's bound values to determine
rectangle's size.