Fixed imageset for Interval

`imageset` of sets module uses various `_eval_imageset` implemented in various set classes. But the `_eval_imageset` for Interval doesn't work well unless the given function is monotonic on both positive and negative reals. So, I have fixed it by finding the maxima and minima of the function by solving for the roots of the derivative of the function.