Moving general purpose datastructures into util.