d = nearest neighbouring distances