Particle Swarm Optimisation Algorithm for finding the minimum of two functions