update genetic  algorithm