reduce_cube function

Reduces the third dimension of a cube and returns a data frame