Add serialization and unserialization to MemoryIntervalIndex
Change methods to get and insert data