Symbol-ranking compression implementation in Java