add genetic algor function file