genetic solver