MemoizeScopeToNeighbours now in separate file