add java class for som, begin add JNI C++ class, fixes in MLP JNI files