complete implementation of NNPT, NNPEEntry and NNPT test