Added compile-time generation of directional neighbour indices