Genetic Algorithm for Curve fitting