First version of the PDG construction algorithm