Initializing vertex arrays in heap, instead of stack