created possible working prototype of polynomial division