avl template
created a file to hold tree common code