allocate all arrays for input data in the main() function