Finished transforming all needed element to 1D arrays.
By "needed", I mean that all the old 2D stuff has been put in another folder and isn't going to be touched anymore.
If you need to see why we chose our particular memory layout, refer to those old files which contain typedef bignum, ... which explain why we chose our current setup.
works with 1D arrays, but sometimes much slower and other times much faster