example ga for MATLAB