prediction function done and verified
ch02 done
create k-tree