This implementation may be useful for computer science students, inquisitive and related. Especially those with data structures. Feel free to help improve this code, make your fork and edit as you like.
More information about AVL Tree see: http://cs-study.blogspot.com.br/2012/11/avl-tree.html