stack_min() done, prequel for sort