added is_valid_pointer metohd to MemoryPool