Added methods from WaveletTree

Added methods from WaveletTree.
Creating object PrefixSum in constructor