Data structure for memberships