Add nearest-neighbour operator to 'contrib/cube'.