Bugfix: insert fails when resulting node has degree greater than 2. It
still remains a memory access bug within add_to_leaf.