Finished Memory

Used very simple algorithm for alloc/dealloc