getPathRec

Get the path from root node to this node, uses recursion