prettified max_degree() definition
new subroutine init__p_k_pk__and__nmod()