Implemented Horner's rule
implemented modular determinant algorithm