Majorization algorithms for inspecting circles, ellipses, squares, rectangles, and rhombi