Circulant based preconditioners for the solution of time-dependent problems