Added early malloc/free functions
..

Added early run implementation