Modified nested Horner method + bunch of fixes