added gpolyencode library

Signed-off-by: mamogmx <marco.carbone@gmx.com>