added methods to serialize and deserialize tar indices