ASTCompressor

Incomplete implementation but need to merge with Mat's commit in order to simplify it