Shelf:Algorithms and data structures/ancestry