Created class for arrays to handle the memory, size, and dealing with the two effects in a 1D array