Dynamic allocated array in structures