improved efficiency of xPowerSetOf using std::vector