Unwind function of Node class returns the path to the initial node