Added powermod to euler utils