core dump
fixing the memory error
Merge branches 'dump' and 'master'
(1) malloc.h is replaced by stdlib.h (2) fixed numbers are replaced by variables
in allocate, if malloc fails to allocate proper memory, the program prints error message with perror and exists with an error code