Implemented bounding box computation.