private static int findPositionInTable(Code lookFor, Code[][] lookIn) {
        int lookForIndex = lookFor.getLength();
        if (lookForIndex >= lookIn.length)
            return -1;
        Code[] lookInWithSameLength = lookIn[lookForIndex];
        if (lookInWithSameLength == null)
            return -1;
        int len = lookInWithSameLength.length;
        for (int i = 0; i < len; i++) {
            Code potentialMatch = lookInWithSameLength[i];
            if (lookFor.equals(potentialMatch))
                return potentialMatch.getTablePosition();
        }
        return -1;

    }