[Fix] Oct tree.
  -- Use node-pt as the criteria to tell a node is a leaf or not.
  -- Fixed the bug which returned NULL to the root of the tree.