Calculates correlation between cube

some code to calculate the correlation between cubes over any dimensions (include all of them). Not sure if the tests are up to scratch but they are some anyway. Maybe should make the coord list optional and just calc corr over all dimensions in that case?