private Vector solve(Node node) {
		Vector solution = new Vector();

		solution.addElement(node);
		while (node.parent != null) {
			solution.insertElementAt(node.parent, 0);
			node = node.parent;
		}

		return solution;
	}