added sum_array and is_subset