Adding number theoretic algorithms to notebook