So i have 8 arrays with 24 elements each. I need to test every combination of every array with every possible element from other arrays. So in C++ i would do it like: