Rationalization and Simplification of algebraic fraction