New functions + code optimization.

Functions DGMakeCursorData, DGMakeGlyph, DGMakeLogData,
setValuesInLookUpTable were added.
Code optimization.