Changed releaseMemory() in emd.c and emd.h, main.cpp can build a DB