Moved split check outside of main loop in BTree.insert()