Simple 2D geometry library (for teaching)