Internal helper function to set up an (n m) x (n m) pairwise distance matrix for a plate with n rows and m columns
Useful links