A d-dimensional aabb-tree implementation for MATLAB.