added 1,2,3-dimensional array objects, replaced old pointer lists

This pull request introduces a 1, 2 and 3-dimensional array template object in `src/headers/array.h`. The underlying datastructure is a linear array. All old arrays, based on pointer lists, have been replaced.