working of GWO algorithm