Genetic Algorithm for Curve Fitting