Added basic memory allocator
size_t -> long