Expansion of Algebraic expression