using long long for array sizes