The use of genetic algorithms to find the best fit to a polynomial curve