Change find_prefix_match() to return a node.