Accelerated version of finding neighbourghs