Story Tag: Data structures and algorithms