insert and split implemented for tree