Added split into array and combinatorial method.