Add path method to get path to current node in tree