calculate depth and balance

Skills: recursive, calculate depth of every node