Calculates correlation between cubes

some code to calculate the correlation between cubes over any dimensions (including 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?