Algebraic Long Division