Began work on k-d tree builder

The bulk of the work has been on intersection tests for an axis-aligned boundary box and a simplex, hypercube or hypersphere.

An actual tree building algorithm has been implemented, but hasn't been tested and relies on an incomplete function.