How to initialize a variable number of arrays