Collection classes and other utilities.

@author Anders Møller <amoeller@cs.au.dk>