Implement a bounding box class to simplify some bounding box operations.