Please use shogun/lib/DynamicArray.h