calc Moore neighborhood in R; answers @DrCraigMc query