horners_rule

added Tests, rebased.
Could you replace the tab by four spaces to be consistent with the rest of the code?