Working Von Neumann topology for irregular lattice structures.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Correct off-by-1 error in lbest neighbourhood function.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>