Compute correlation lenghts in all directions