Added misc JNI implementation

On a side note, should we even bother with the generics for the data
types? We basically will only be dealing with int, float, and double
types...