added key definition in tree: Tree[N] -> Tree[K,N]