Pre-reference implementation for GPDHT