was just to be sure that the weight of elemt 3 is infinity, so 3 should always be in first possition