Fixed and cleaned code for AxisAlignedBoundingBox computation.