No need to have a destructor, memoryManager takes care of its destruction
Formatting
Added two math utils to transform 1D<->2D indexes for 2D arrays