added new(), delete() and realloc() methods. so far only new() uses extern functions. delete() and realloc() uses free() and realloc() from stdlib.
later on we could define extern functions even for delete() and realloc().