Add simple CPU kd-tree traversal method.
Fix syntax error in intersection code.