added functions to find common prefix of a set of keys
change leafState to keep a running list of pairs to go into the leaf and then build the entire leaf page at the end, rather than actually adding keys/vals into the PageBuilder along the way.  this will make it easier to do prefix compression on the keys.
prefix compression for keys in leaves.