Fix cell centering algorithm.
Merge branch 'surface' of github.com:materialsproject/pymatgen into surface