Fix bug in ray/triangle intersection test.
Refactored kd-tree construction code.
Fix merge conflict.
Merge branch 'master' of https://github.com/jeremynewlin/Accel