Explicit Decomposition with Neighborhoods cpp version