Trapezoid graphs and generalizations, geometry and algorithms