Added build_kd_tree, classify, and choose_plane.