document 'leaf.bool' argument
optimize boolean reference nodes searching process
extend to the routine to support finding common ancestor for multiple nodes
fix a bug in finding common ancestor