private Node[] findStackElementsWithFirstElement(Node stackFirstNode) {
		int count = 0;
		Node tempNode = stackFirstNode.getNextNode();
		while (tempNode != null) {
			tempNode = tempNode.getNextNode();
			count++;
		}
		Node[] linkNodes = new Node[count];
		tempNode = stackFirstNode.getNextNode();
		int i = 0;
		while (tempNode != null) {
			linkNodes[i] = tempNode;
			i++;
			tempNode = tempNode.getNextNode();
		}
		return linkNodes;
	}