JNI connection working for hashmap

Wrote templates for Java -> R code translation