Added singularity finder for univarite rational functions
Fixed Interval._eval_imageset

Interval._eval_imageset was not working well the give function was not
monotonic. Now it is evaluated by finding out the maxima, and minima of
the function by solving the derivative of the function in the given
interval.
Merge pull request #2723 from hargup/imageset

Fixed imageset for Interval