minimum temporary label algorithm 4452387