Pairwise Correlations in Layered Close-Packed Structures