Memory Managmet

improvment to memory managment( use of calloc instead of malloc)