Fixed bugs dealing with popping from empty min list, and updating min appropriately when stack contains a and b where a == b