Added totient function