Fixed bug in AVL Tree Insertion which caused layout function to fail after rotating the root node.