call checkpoint() on rdd for working with large iterations.