finished AAR compression/decompression, optimized algorithm