Added convenience classes for mapping from two keys, three keys, or four
keys to values. These will be used to map MDP and SMDP samples to
values.