Use a huffman tree for ordering the cache, so largest leaps win.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>