modify gene algorithm with read file base(previous best gene)