add department tree and update hierarchy #61