implementing binary search tree with maps to see what line a word is on and order it in alphabetical order in c++