Add KDTree field and Phi function to Env class; add ToArray() method to Vect class; add java-ml library with kdtree implementation.