realloc and some modifications on malloc to make it work

so far 1st bonus done added realloc with its testcases and they are full
working and made some modifications on malloc code to make realloc
easier