public static int distanceToLine(List<String> list1, List<String> list2) {
		LinkedList<String> line1 = new LinkedList<String>(list1);
		LinkedList<String> line2 = new LinkedList<String>(list2);
		
		int size = Math.min(line1.size(), line2.size());
		setSize(line1, size);
		setSize(line2, size);
		
		while (true) {
			if (line1.isEmpty()) {
				return -1;
			}
			
			if (line1.equals(line2)) {
				return list1.size() - line1.size();
			}
			
			line1.removeLast();
			line2.removeLast();
		}
	}