JNI implementation of Myo class