get min elem in stack