completed mem manager implementation. add alignment and alloc/free functions, not debugged