results.c: Aggregate like failures

Use a binary tree in a MAP_SHARED region so we can reload it easily
after a crash. This turned out really really nice, actually. I thought
it would be really messy.