GeneticsLib rewritten in c++