Compute sum of cubes for given range