Add polynomial division algorithm