functions to create a meta structure for quick neighbour computations