added xark_mem.c. A very simple memory manager with just a stack implemtnted