Quadtree coding matlab code based on adaptive scan order and optimal truncation