add precompiled version of find neighbours