updated getheight recursive BT