solve_univariate_inequality: Changes in checks on critical points
solve_univariate_inequality: Changes in checks on critical points

Validity of critical points is computed once now, and stored in  a variable
instead of calling the `valid` function every time.

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy