KD tree

kd tree can be constructed but it does not cover all the objects in the
scene, have no idea how to deal with it.