refactor rect module
Extract a rect module, implement intersect, union and transform with unit tests, and use it both in bbox.rs and drawing-ctx.rs
Extract a rect module, implement intersect, union and transform with unit tests, and use it both in bbox.rs and drawing-ctx.rs