implemented division by horner