A Comparative Analysis of Evolutionary Algorithms for Function Optimisation