A simple header-only generic dynamic array implementation