refactoring+add functions in Node

add functions to check whether node is balanced/semibalanced