made the vector of pages in the Word class an AVLTree