Implementation of WaveletTree in Java, C# and Python