Method to pad cubes with masked values so the are comparable