http://en.wikipedia.org/wiki/Moore_neighborhood