Spotted bug in deterministic pp algorithm.
Tested again with no better results.
TODO: see inline comment for potential speed increase (NN distances compute only once)