Replaced malloc.h include with stdlib.h