Adding c++ version of immunity generator