B-spline surface fitting using genetic algorithm