Implemented vm::var.
MemoryAllocator replaced with vm::var
Fixed compilation errors
Implemented vm::ptr & vm::ref
memory-wip branch merged