contiguous subset sum