Simple Implementation of dynamic memory objects for C