Better balancing of BTree on insert

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>