changed getGlobalBest() function according to requirements and test implementation of GreedyPSO modifictaiton for PoI