>>518
sample = (ST1 **)malloc(sizeof(ST1 *)*x);
for(i=0;i<x;i++){
   sample[i] = (ST1 *)malloc(sizeof(ST1)*y);
}