double linked list to implement subarray covering subset problem