結果 : algorithm for insertion in priority queue