maximum array size

You should think about a different platform, one with more RAM. Raspberry Pi etc.