fix bugs in for loop, declaration and return
Merge branch 'master' of https://github.com/wqfish/avl