Implementation of beehive method (particle swarm optimization) for global optimization of multidimentional functions