Changed the logic of Authorities and Hubs computation