Added a bunch of collection-like code (basic data structures, really).