bugfix + more efficient rewrite of WaveletTree.h
bugfix + more efficient rewrite of WaveletTree.h