Wrote a basic KP BVH implementation.