Algorithms for calculating quark propagators on large lattices