I used push_back later. Maybe it is better to use DynArray in shogun.