Added totient and prime factorization functions

Some basic functions for number theory/crypto