Added minWith, maxWith fixed #54