Implemented minView, maxView, minViewWithKey, and maxViewWithKey