reverted changes to MakeJSON.java and DatasetJSON.java

so that ldaC works again
fixed a few bugs in kmeans.py

where distances were being computed incorrectly