Changed barabasi algorithm