Improved box intersection algorithm - performance boost