Minimum And Maximum Of A Function