Implemented Neighbour-pointer construction