changed <malloc.h> to <malloc>