fix the memory bug in the program. And Add some other API in Utility.h