added to makefile, updated left,right,parent in tree