Custom C++ array container