Implementation of multidimensional array varidiac template in C++