Measure volume using unit cubes