added functions to get number of nodes for each tier
Added a function to set nodes
merge