Replaced ray box intersection and added additinal function

- Replaced the ray box intersection function by a other
- added BG_OriginFromBoundingBox which calculates an approximate origin
from a given bounding box