Iterative methods for overlap and twisted mass fermions