On a population model in discrete periodic habitat. I. spreading speed and optimal dispersal strategy