update util functions and add solution for populating next right pointers in each node I & II.
code refactoring for build and destroy tree operations.