added functions variableStride and IndexOfAssignment (not to be confused with IndexToAssignment). Helps in getting value array offset of specific assignments to a probabliity distribution of a Factor object