Update check tree balance or not(heights never differ by more than one)

又出错了，忘记加绝对值，O(N)time, 每个点都遍历了一遍；O(logN)space,因为程序运行时桟中每次只存一条路径，每个path的高度是logN，从root到leaf有logN个elements