Add preprocessing of the adjacency territory matrix