Add BoundingRect class which I dumbly failed to include in the last commit.