Dymanic memory for table

Code changet to get dynamic memory (malloc()) for creating dataTable