added image_basic and kdtree
PIAACMC optimization