This is a really unatomic commit, but mainly printing functions and working on main karp_rabin routine