1. The basic algorithm e largest amount of work for this second version of P has been devoted to the improvement of the CIPSI algorithm implementation. As brie y described in Sec. II, this is an iterative selection algorithm, where determinants are added to the reference wave function according to a perturbative criterion.