Added algorithm for finding all combinations of arrays