Code Review: How can I optimize my Von Neumann neighborhood algorithm? (3 Solutions!!)

Published --