Implement some important functions in BBox class.