started adding num theoretic algorithms